
{include file="public/header" /}
<link rel="stylesheet" href="/static/admin/css/base.css" media="all">
<style>
    .layui-form-item {
        margin-bottom: 15px !important;
        clear: both;
        *zoom: 1;
    }
    .goBack{
        float: left;cursor:pointer;
        font-weight: bold;
        font-size: 15px;
    }
    .center{
        font-weight: bold;
        font-size: 15px;
    }
</style>
<body>
<div class="layui-fluid layui-anim layui-anim-downbit">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 15px;">
            <form class="layui-form" id="form" action="{:url('deliver')}">
                <input type="hidden" name="id" value="{$info->id}"/>
                <fieldset class="layui-elem-field layui-field-title">
                    <legend>收货信息</legend>
                </fieldset>

                <div class="layui-form-item">
                    <label class="layui-form-label">收货人 </label>
                    <div class="layui-input-inline">
                        <input type="text" value="{$info->receiver}" name="receiver" lay-verify="required" lay-reqtext="请填写收货人" placeholder="请填写收货人"  class="layui-input"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">收货电话 </label>
                    <div class="layui-input-inline">
                        <input type="text" value="{$info->receiver_tel}" name="receiver_tel" lay-verify="required" lay-reqtext="请填写收货电话" placeholder="请填写收货电话" class="layui-input"/>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">收货地址 </label>

                    <div class="layui-inline sunSelect" data-url="{:url('order/getArea')}" data-value="code" data-name="title">
                        <div class="layui-input-inline">
                            <select name="province" data-name="省" data-level="1" data-id="{$info.province}" lay-filter="sunSelect"></select>
                        </div>
                        <div class="layui-input-inline">
                            <select name="city" data-name="市" data-level="2" data-id="{$info.city}" lay-filter="sunSelect"></select>
                        </div>
                        <div class="layui-input-inline">
                            <select name="district" data-name="区/县" data-level="3" data-id="{$info.district}" lay-filter="sunSelect"></select>
                        </div>
                        <div class="layui-input-inline">
                            <select name="town" data-name="街道" data-level="4" data-id="{$info.town}" lay-filter="sunSelect"></select>
                        </div>
                    </div>

                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">详细地址 </label>
                    <div class="layui-input-block">
                        <input type="text" value="{$info->address->details}" name="address_details" lay-verify="required" lay-reqtext="请填写详细地址" placeholder="请填写详细地址" class="layui-input"/>
                    </div>
                </div>

                <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                    <legend>发货信息</legend>
                </fieldset>
                <div class="layui-form-item">
                    <label for="express_id" class="layui-form-label">快递公司</label>
                    <div class="layui-input-inline">
                        <select  name="express_id" id="express_id" lay-filter="express_id" style="max-height: 100px;">
                            {volist name="express" id="vo"}
                            <option value="{$vo.id}" {if $info.express_id == $vo.id}selected{/if} >{$vo.title}</option>
                            {/volist}
                        </select>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">快递单号 </label>
                    <div class="layui-input-block">
                        <input type="text" value="{$info.express_code}" name="express_code" lay-verify="required" lay-reqtext="请填写快递单号" placeholder="请填写快递单号" class="layui-input"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">备注 </label>
                    <div class="layui-input-block">
                        <input type="text" value="{$info.post_remark}" name="post_remark"  placeholder="备注" class="layui-input"/>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
{if $info->getData('status') < 4}
<div class="layui-form-item layui-layout-admin">
    <div class="layui-input-block">
        <div class="layui-footer" style="left: 0;">
            <button class="layui-btn" lay-filter="save" lay-submit formObj="#form"> {if $info->getData('status') < 3}发货{else}修改{/if}</button>
        </div>
    </div>
</div>
{/if}

</body>
{include file="public/footer" /}
</html>